#ifndef HERB_H
#define HERB_H

#include <QString>
#include <QHash>

class Herb
{
public:
    Herb(const QString& name,int thermal,//寒热性
         const QHash<QString,int>& maineff,//作为主药药性
         const QHash<QString,int>& aideff,//作为辅药药性
         const QString iconPath);//图案路径

    Herb() : m_thermal(0) {}

    QHash<QString,int> geteff(const QString& role) const;
    int thermal() const;
    QString name() const;
    QString iconPath() const{
        return m_iconPath;
    }

    QStringList getmaineff() const {
        return m_maineff.keys();
    }

    QStringList getaideff() const {
        return m_aideff.keys();
    }


private:
    QString m_name;
    int m_thermal;
    QHash<QString,int> m_maineff;
    QHash<QString,int> m_aideff;
    QString m_iconPath;
};

#endif // HERB_H
